Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More efficient encoding of lists #1284

Merged

Conversation

plokhotnyuk
Copy link
Contributor

Tested with Scala 3 and JDK-21 on Intel® Core™ i7-11800H:

Before

Benchmark                      (size)   Mode  Cnt         Score         Error  Units
ListOfBooleansWriting.zioJson       1  thrpt    5  42626498.232 ± 1191762.765  ops/s
ListOfBooleansWriting.zioJson       3  thrpt    5  30622270.257 ±  565535.698  ops/s
ListOfBooleansWriting.zioJson      10  thrpt    5  11410538.676 ±   52518.404  ops/s
ListOfBooleansWriting.zioJson      33  thrpt    5   3954503.595 ±   10465.811  ops/s
ListOfBooleansWriting.zioJson     100  thrpt    5   1141918.106 ±   78351.131  ops/s
ListOfBooleansWriting.zioJson     333  thrpt    5    356808.175 ±    8228.529  ops/s
ListOfBooleansWriting.zioJson    1000  thrpt    5    105240.520 ±     537.849  ops/s

After

Benchmark                      (size)   Mode  Cnt         Score        Error  Units
ListOfBooleansWriting.zioJson       1  thrpt    5  42893766.949 ± 830789.797  ops/s
ListOfBooleansWriting.zioJson       3  thrpt    5  31424740.861 ± 205664.394  ops/s
ListOfBooleansWriting.zioJson      10  thrpt    5  14039622.426 ± 292832.648  ops/s
ListOfBooleansWriting.zioJson      33  thrpt    5   4321492.200 ±  74325.392  ops/s
ListOfBooleansWriting.zioJson     100  thrpt    5   1406430.432 ±  51164.812  ops/s
ListOfBooleansWriting.zioJson     333  thrpt    5    407791.373 ±   6986.114  ops/s
ListOfBooleansWriting.zioJson    1000  thrpt    5    123098.798 ±   5591.825  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 4, 2025 09:20
@plokhotnyuk plokhotnyuk merged commit 06f9d72 into zio:series/2.x Feb 4, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-encoding-of-lists branch February 4, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant